package com.mice.meta
{
	import flash.utils.Dictionary;

	public class MetaManager{
		/**
		 * 需要下载swf的路径, name:value, url:value
		 */		
		public static var urlArray:Array = new Array();
		
		/**
		 * 战斗单位metaDict,level-id-fighterMeta
		 */		
		public static var fighterMeta:Dictionary;
		
		/**
		 * 格式化xml,用来加载
		 */		
		public static function formatXml(xml:XML):void{
			var preUrl:String = xml.metas.@prependURLs;
			for each (var meta:XML in xml.metas.meta){
				var urlObj:Object = new Object();
				urlObj.name = String(meta.@name);
				urlObj.url = preUrl + meta.@url;
				urlArray.push(urlObj);
			}
		}
	}
}